package com.project.frba.bifront.client.view;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.gwtext.client.widgets.Window;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.layout.VerticalLayout;

public class HelpWindow extends Composite {

	private Window mainWindow = new Window("Ayuda");
	
	private Panel panel = new VerticalPanel();
	
	public HelpWindow(){
		Image logoBIPyme = new Image("./icons/logo.jpg");
		panel.add(logoBIPyme);
		
		Label information = new Label("Email de Contacto: bipyme@bisoft.com.ar");
		Label manualAddress = new Label();
		manualAddress.setHtml("" +
				"<div style=\"width: 100%; font-size: 14px;\" align=\"center\" >" +
					"<a href=\"./uploadServer/manual.rar\">Descargar manual</a>" +
				"</div>");
		
		mainWindow.add(panel);
		mainWindow.add(new Label(" "));
		mainWindow.add(information);
		mainWindow.add(manualAddress);
		mainWindow.setLayout(new VerticalLayout());
		mainWindow.setWidth(435);
		mainWindow.setHeight(250);
		mainWindow.setPaddings(10);
		mainWindow.setModal(true);
		initWidget(mainWindow);
		mainWindow.show();
	}
	
	
}
